import { Button } from "antd";
import { useNavigate } from "react-router";
import styles from "./index.module.scss";

const Index = () => {
  const navigate = useNavigate();
  
  const handleEnterPan = () => {
    navigate({ pathname: '/pan' });
  }

  return (
    <div className={styles["index-container"]}>
      <div className={styles["welcome-area"]}>
        <img className={styles["pic"]} src="https://xwjblog.cn/pan/hehe/hehe-shidizai2-1669021271430"></img>
        <div className={styles["title"]}>还没想好怎么写, 点击这里进入网盘</div>
        <Button type="primary" onClick={handleEnterPan}>进入网盘</Button>
      </div>
    </div>
  );
};
export default Index;
